//SPDX-FileCopyrightText: Copyright 2022-2024 深圳市同心圆网络有限公司
//SPDX-License-Identifier: GPL-3.0-only

package testcase_dao

import "atomgit.com/openlinksaas-org/proto-gen-go.git/project_testcase_api"

type PermSettingDbItem struct {
	UpdateForAll          bool     `bson:"updateForAll"`
	ExtraUpdateUserIdList []string `bson:"extraUpdateUserIdList"`
}

func (item *PermSettingDbItem) ToPermSetting() *project_testcase_api.PermSetting {
	return &project_testcase_api.PermSetting{
		UpdateForAll:          item.UpdateForAll,
		ExtraUpdateUserIdList: item.ExtraUpdateUserIdList,
	}
}
